import Vue from 'vue'
import Router from 'vue-router'
import VueScroller from 'vue-scroller'
import Vuerify from 'vuerify'

/*common*/
//import Head from '@/components/Common/Head'

import Home from '@/components/Home'
import Feedback from '@/components/About/Feedback'

import News from '@/components/News/News'
import NewsList from '@/components/News/NewsList'
import NewsDetail from '@/components/News/NewsDetail'

import Calendar from '@/components/Calendar/Calendar'

import Attendance from '@/components/Attendance/Attendance'
import Course from '@/components/Attendance/Course'
import Morning from '@/components/Attendance/Morning'
import Evening from '@/components/Attendance/Evening'
import Sleep from '@/components/Attendance/Sleep'
import Detail from '@/components/Attendance/Detail'
import SelfDetail from '@/components/Attendance/SelfDetail'
import ChooseClass from '@/components/Attendance/ChooseClass'
import Schedule from '@/components/Schedule/Schedule'


import Office from '@/components/Office/Office'
import FlowList from '@/components/Office/FlowList'
import WaitFlowList from '@/components/Office/WaitFlowList'
import MyFlowList from '@/components/Office/MyFlowList'
import OverFlowList from '@/components/Office/OverFlowList'
//import FlowList from '@/components/Office/FlowList'
import Meeting from '@/components/Office/Meeting'
import Repair from '@/components/Office/Repair'
import Leave from '@/components/Office/Leave'
import DetailMeeting from '@/components/Office/DetailMeeting'
import DetailRepair from '@/components/Office/DetailRepair'
import DetailLeave from '@/components/Office/DetailLeave'

//学生评价
//import Evaluate from '@/components/Evaluate/Evaluate' 
//素质评价报告
import QualityEvaluateReport from '@/components/Evaluate/QualityEvaluateReport' 
import EvaluateDetail from '@/components/Evaluate/EvaluateDetail'
import EvaluateDetailTeacher from '@/components/Evaluate/EvaluateDetailTeacher' //教师
import EvaluateDetailPresident from '@/components/Evaluate/EvaluateDetailPresident' // 专业领导
import EvaluateDetailProfession from '@/components/Evaluate/EvaluateDetailProfession' //校长
import EvaluateDetailPerson from '@/components/Evaluate/EvaluateDetailPerson'
import ClassDetail from '@/components/Evaluate/ClassDetail' //详情

//学生实习报表分析
import IntershipReport from '@/components/Intership/IntershipReport'

import PageError from '@/components/PageError'


Vue.use(Router)
Vue.use(VueScroller)
Vue.use(Vuerify)
//Vue.component('FlowList', FlowList)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
    	path: '/about/feedback',
  	  name: 'Feedback',
  	  component: Feedback
    },
    {
    	path: '/schoolcalendar/:token/:schoolId',
  	  name: 'Calendar',
  	  component: Calendar
    },
    {
    	path: '/news/:token/:schoolId',
      name: 'News',
      component: News
    },
    {
    	path: '/news/newslist/:schoolId/:type',
      name: 'NewsList',
      component: NewsList
    },
//   {
//  	path: '/news/detail/:newsId',
//  	redirect: '/news-detail/:newsId',
////    name: 'NewsDetail',
//    component: NewsDetail
//  },
    {
    	path: '/news-detail/:newsId',
      name: 'NewsDetail',
      component: NewsDetail
    },
    {
    	path: '/attendance/:token/:userId/:role',
      name: 'Attendance',
      component: Attendance
    },
    {
    	path: '/attendance/course/:role',
      name: 'Course',
      component: Course
    },
    {
    	path: '/attendance/morning/:role',
      name: 'Morning',
      component: Morning
    },
     {
    	path: '/attendance/evening/:role',
      name: 'Evening',
      component: Evening
    },
     {
    	path: '/attendance/sleep/:role',
      name: 'Sleep',
      component: Sleep
    },
    {
    	path: '/attendance/detail/:SpecialtyID/:GradeID/:classId/:studentID/:name/:num/:typeId/:status',
      name: 'Detail',
      component: Detail
    },
    {
    	path: '/attendance/selfdetail/:SpecialtyID/:GradeID/:classId/:studentID/:name/:num/:typeId/:status/:type',
      name: 'SelfDetail',
      component: SelfDetail
    },
    {
    	path: '/attendance/chooseclass/:role',
      name: 'ChooseClass',
      component: ChooseClass
    },
    {
    	path: '/schedule/:token/:schoolId',
      name: 'Schedule',
      component: Schedule
    },
    {
    	path: '/office/:token/:schoolId/:userId',
      name: 'Office',
      component: Office
    },
    {
    	path: '/office/waitflowList/:state',
      name: 'WaitFlowList',
      component: WaitFlowList
    },
    {
    	path: '/office/myflowList/:state',
      name: 'MyFlowList',
      component: MyFlowList
    },
    {
    	path: '/office/overflowList/:state',
      name: 'OverFlowList',
      component: OverFlowList
    },
//  {
//  	path: '/office/flowList/:state',
//    name: 'FlowList',
//    component: FlowList
//  },
    {
    	path: '/office/meeting/:Id',
      name: 'Meeting',
      component: Meeting
    },
    {
    	path: '/office/repair/:Id',
      name: 'Repair',
      component: Repair
    },
    {
			path: '/office/leave/:Id',
      name: 'Leave',
      component: Leave
    },
    {
    	path: '/office/detailMeeting/:instanceId/:bookmark/:state/:status/:hasBack/:person',
      name: 'DetailMeeting',
      component: DetailMeeting
		},
    {
    	path: '/office/detailLeave/:instanceId/:bookmark/:state/:status/:hasBack/:person',
      name: 'DetailLeave',
      component: DetailLeave
		},
		{
    	path: '/office/detailRepair/:instanceId/:bookmark/:state/:status/:hasBack/:person',
      name: 'DetailRepair',
      component: DetailRepair
		},
//			{
//  	path: '/evaluate/:token/:schoolId/:userId',
//    name: 'Evaluate',
//    component: Evaluate
//		},
			{
    	path: '/evaluate/qualityEvaluateReport/:id',
      name: 'QualityEvaluateReport',
      component: QualityEvaluateReport
		},
			{
    	path: '/evaluate/evaluateDetail/:UserID/:type',
      name: 'EvaluateDetail',
      component: EvaluateDetail
		},
		{
    	path: '/evaluate/evaluateDetailTeacher/:UserID/:type/:num',
      name: 'EvaluateDetailTeacher',
      component: EvaluateDetailTeacher
		},
			{
    	path: '/evaluate/evaluateDetailPresident/:UserID/:type/:num',
      name: 'EvaluateDetailPresident',
      component: EvaluateDetailPresident
		},
			{
    	path: '/evaluate/evaluateDetailProfession/:UserID/:type/:num',
      name: 'EvaluateDetailProfession',
      component: EvaluateDetailProfession
		},
		{
    	path: '/evaluate/evaluateDetail/evaluateDetailPerson/:id/:name',
      name: 'EvaluateDetailPerson',
      component: EvaluateDetailPerson
		},
		{
    	path: '/evaluate/class/classDetail/:ClassName/:ClassID/:type:/:semesterCode',
      name: 'ClassDetail',
      component: ClassDetail
		},
		{
    	path: '/intership/intershipReport/:UserId/:Role/:Type',
      name: 'IntershipReport',
      component: IntershipReport
		},
	  {
	   	path: '/*',
	    name: 'PageError',
	    component: PageError
	  }
  ]
})
